home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
comm
/
comm1
/
cnetmlls.lha
/
milles
/
CNetMilles.Update
< prev
Wrap
Text File
|
1997-01-12
|
3KB
|
69 lines
/**************************************************************************\
$VER: Mille Bornes Update, v1.13 (12-Jan-97) by Dotoran of Frontiers!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
ver=word(sourceline(2),5);a=word(sourceline(2),6);parse var a "("vdate")"
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch;mg=maygetchar
a='rexxsupport.library';if ~show('l',a) then if ~addlib(a,0,-30) then exit
/* NOTE: Do NOT run this file if using v1.11 or v1.12 presently! */
tr "f1@4n1CNet Mille Bornes, Update, "ver" last modified: "vdate"n1"
se " This update adds the `Game Speed' variable to all SAVED GAME files, "
tr "as well as adding the `Amiga Plays Extension' decision...n1"
tr " You should ONLY run this script if using v1.10 Mille Bornes!n1"
se "Continue? [No]: ";gc;a=result;if a~="Y" then do;tr "No";exit;end;else tr "Yes"
tr "list mail:users/#?/_milles(1|2|3|4|5) lformat %P%N >ram:Milles"
address command "list mail:users/#?/_milles(1|2|3|4|5) lformat %P%N >ram:Milles"
tr "n1Reading from the `ram:Milles' file created above..."
call open(f1,"ram:Milles","R")
do i=1 until eof(f1) ; t.i=readln(f1) ; end i ; t=i-1
call close(f1)
if t=0 then do
tr "n1No SAVED GAMES on file..." ; exit ; end
do i=1 to t
call open(f1,t.i,"R")
do j=1 until eof(f1) ; l.j=readln(f1) ; end j ; l=j-1
call close(f1)
tr "n1Converting> "t.i
if l.1=ver then do;tr " Already in "ver" format.";iterate;end
se " Updating Version Number..." ; l.1=ver ; tr "Done!"
se " Adding Game Speed Value..."
parse var l.3 v1"|"v2"|"v3"|"v4"|"v5"|"v6"|"v7"|"v8"|"v9"|"v10"|x"
l.3=v1"|"v2"|"v3"|"v4"|"v5"|"v6"|"v7"|"v8"|"v9"|"v10"|0|x" ; tr "Done!"
se " Adding CPU Extension Decision..."
do j=l-(v8-1) to l ; parse var l.j p1"|"p2"|"p3"|"p4
l.j=p1"|"p2"|"p3"|0|"p4 ; end j ; tr "Done!"
se " Saving..."
call open(f1,t.i,"W")
do j=1 to l ; call writeln(f1,l.j) ; end j
call close(f1) ; tr "h6ed!"
end i
tr "n1Issuing this last dos command:n2delete ram:Milles"
address command "delete ram:Milles"
tr "n1Update to v1.11 complete!"
exit
CHECK:;if ARG() & ARG(1)~='###PANIC' then return ARG(1)
getcarrier;if result='TRUE' then if ARG() then return ARG(1);else return
logentry 'Lost Carrier!!';bufferflush;exit
SYNTAX:;ERROR:;IOERR:;e1='n1 Error: 'rc' ('errortext(rc)')'
e2=' Line: 'left(sigl,4)'File:';gu 1311992;a=result;gu 1311960
b=result;c='"'a||b', 'ver'"';e2=e2' 'c;tr e1;tr e2;logentry e1
logentry e2;e=translate(sourceline(sigl),"\{","");do while e~=''
e3='Source: 'left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush
/**************************************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/